<me:UIVAART x:Class="WPFExcelReport.TPAFSVA06"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:VAK="clr-namespace:WPFExcelReport;assembly=TVAKOLL" 
                    xmlns:WS="clr-namespace:WPFExcelReport;assembly=TWASTAMM" 
                    xmlns:DR="clr-namespace:WPFExcelReport;assembly=TDRAUFTR" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                     xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                     xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"  
                    xmlns:VKK="clr-namespace:WPFExcelReport;assembly=TVKKOPF"  
                    xmlns:EXART="clr-namespace:WPFExcelReport;assembly=TICC_EXART"  
                    xmlns:LS="clr-namespace:WPFExcelReport;assembly=TLIEFDAT"  
                    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN"  
                    FontSize="16"
                   IsPage="True"
                    Rows="100"
                   x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIVAART.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>    
        <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter  x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:TRIMGB2312Convert8859P1 x:Key="tgb"/>
        <ucd:TextTrimmingConverter x:Key ="trim"/>
    </me:UIVAART.Resources>

    <Grid IsEnabled="{Binding IsBusy,ElementName=TV,Converter={StaticResource not}}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
            <RowDefinition Height="2*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="2*"></ColumnDefinition>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        
        <StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
            <WrapPanel    Margin="0,5,0,0">
                <Button  Click="QueryCommand" Height="20" Margin="5,0,0,0" Width="24" >
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/Search.png" />
                    </Button.Background>
                </Button>
                <VAK:TSAVA02   KEY="{Binding KOLL,ElementName=TV}" 
                               IsReset="{Binding IsReset,ElementName=TV}"
                     Visibility="Collapsed"         />
                <Grid Margin="10,0,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=Barcode:}}"></TextBlock>
                    <ex:TXT72  Grid.Column="1" Text="{Binding ART,Converter={StaticResource gb2312}}"
                                KeyUp="ART_KeyUp" CharacterCasing="Upper"  Width="100" FontSize="18"/>
                </Grid>
                <Grid Margin="10,0,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ART NO.:}}"></TextBlock>
                    <ex:TXT72  Grid.Column="1" Text="{Binding DES,Converter={StaticResource gb2312}}"
                               Name="txtART" KeyUp="ART_KeyUp" CharacterCasing="Upper"  Width="100" FontSize="18"/>
                </Grid>

                <Grid Margin="10,0,0,0" >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <LS:TSLS02 LSLIEFNA="{Binding SHIFT,ElementName=TV}"  
                               Name="cLS02"
                               IsEdit="True"
                               />
                    <!--<TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SUPPLIER:}}"></TextBlock>
                    <ex:TXT72  Grid.Column="1"  Text="{Binding FARBE,Converter={StaticResource gb2312} }" MaxLength="20" KeyUp="ART_KeyUp" 
                               CharacterCasing="Upper" Width="100" FontSize="18"/>-->
                </Grid>
                <Grid Margin="10,0,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=Composition:}}"></TextBlock>
                    <ex:TXT72  Grid.Column="1"  Name="txtCOMP" CharacterCasing="Upper" Width="100" FontSize="18" KeyUp="ART_KeyUp"/>
                </Grid>

                <Grid Margin="10,0,0,0" >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=Location:}}"></TextBlock>
                    <ex:TXT72  Grid.Column="1" CharacterCasing="Upper" Name="txtLOCATION" Width="100" KeyUp="ART_KeyUp"  FontSize="18" />
                </Grid>
                <Grid Margin="10,0,0,0" >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=Book:}}"></TextBlock>
                    <ex:TXT72 CharacterCasing="Upper" Grid.Column="1"  Name="txtBOOK" Width="100" KeyUp="ART_KeyUp"  FontSize="18" />
                </Grid>
            </WrapPanel>
        </StackPanel>
        <Grid Grid.Row="1" Grid.Column="0" >
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid Grid.Row="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <StackPanel Grid.Row="0"  Grid.Column="0" >
                    <WrapPanel Margin="0,5,0,0"  VerticalAlignment="Top">
                        <Grid Margin="0,0,0,0"  VerticalAlignment="Top" >
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                             <Button  Grid.Column="1" Click="NewCommand" Height="20" Margin="5,0,0,0" Width="24" >
                                <Button.Background>
                                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Add.png" />
                                </Button.Background>
                            </Button>
                        </Grid>
                        <Grid Margin="10,0,0,0" Visibility="{Binding IsEdit,Converter={StaticResource nbv}}"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Button   Click="EditCommand" Height="20" Margin="5,0,0,0" Width="24"  Name="cEit">
                                <Button.Background>
                                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Edit.png" />
                                </Button.Background>
                            </Button>
                        </Grid>
                        <Grid Margin="10,0,0,0" Visibility="{Binding IsEdit,Converter={StaticResource bv}}"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Button   Click="SaveCommand" Height="20" Margin="5,0,0,0" Width="24" >
                                <Button.Background>
                                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Save.png" />
                                </Button.Background>
                            </Button>
                        </Grid>
                        <Grid Margin="10,0,0,0" Visibility="{Binding IsEdit,Converter={StaticResource bv}}" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Button Click="DeleteCommand" Height="20" Margin="5,0,0,0" Width="24" >
                                <Button.Background>
                                    <ImageBrush  ImageSource="/ImagePackage;component/Images/remove.png" />
                                </Button.Background>
                            </Button>
                        </Grid>
                        <Grid Margin="10,0,0,0" IsEnabled="{Binding IsEnabled,ElementName=cEit,Converter={StaticResource not}}" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Button Click="ReactiveCommand" Height="20" Margin="5,0,0,0" Width="24" >
                                <Button.Background>
                                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Refresh.png" />
                                </Button.Background>
                            </Button>
                        </Grid>
                        <Grid Margin="10,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Button    Click="CopyCommand" Height="20" Margin="5,0,0,0" Width="24" >
                                <Button.Background>
                                    <ImageBrush  ImageSource="/ImagePackage;component/Images/copy.png" />
                                </Button.Background>
                            </Button>
                        </Grid>
                        <Button Content="{Binding Source={Localization:Translate Word=Prefix:}}" Click="ResetAACommand"/>
                        <VAK:TSAVA02 KEY="{Binding KOLL, ElementName=TV}"
                                    IsReset="{Binding IsReset,ElementName=TV}"
                                    />
                        <Grid Margin="10,0,0,0" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <DR:TDRAUFTR  Grid.Column="0" Name="cDR" 
                                           VerticalAlignment="Top"
                                          DocType="{Binding VALBTYP,ElementName=TV}" 
                                          PrintType="OpenExcel" />
                            <Button  Grid.Column="1"  Click="PrintCommand" Height="20"
                                      VerticalAlignment="Top"
                                     Margin="5,0,0,0" Width="Auto" Content="{Binding Source={Localization:Translate Word=Print}}" />
                            <Button  Grid.Column="2"  Click="PrintExCommand" Height="20"
                                      VerticalAlignment="Top"
                                     Margin="5,0,0,0" Width="Auto" Content="{Binding Source={Localization:Translate Word=EXPrint}}" />
                            <Button  Grid.Column="2"  Click="ExportCommand" Height="20"
                                      VerticalAlignment="Top"
                                     Margin="5,0,0,0" Width="Auto" Content="Export" />
                        </Grid>
                        <Grid Margin="10,0,0,0" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <DR:TDRAUFTR  Grid.Column="0" Name="cDRVA06" 
                                           VerticalAlignment="Top"
                                           DocType="TSTVA06"   
                                           PrintType="OpenExcel" Visibility="Collapsed"/>
                            <Button  Grid.Column="1"  Click="btnPrintVA06_Click" Height="20"
                                      VerticalAlignment="Top" Visibility="Collapsed"
                                     Margin="5,0,0,0" Width="Auto" Content="{Binding Source={Localization:Translate Word=ExportExcel}}" />

                        </Grid>
 
                        
                    </WrapPanel>
                    
                    <WrapPanel  Margin="0,5,0,0" Visibility="{Binding IsNew,ElementName=TV, Converter={StaticResource bv}}" VerticalAlignment="Top"> 
                        <TextBlock Text="{Binding Source={Localization:Translate Word=New Article:}}"   />
                      
                        <ex:TXT72  Grid.Column="2" MaxLength="30" CharacterCasing="Upper"
                                           Text="{Binding EXART,ElementName=TV,Converter={StaticResource gb2312}}" Width="280" FontSize="18"  />
                        <Button   Click="NewCommand" Height="20" Margin="5,0,0,0" Width="24"  >
                            <Button.Background>
                                <ImageBrush  ImageSource="/ImagePackage;component/Images/button_ok.png" />
                            </Button.Background>
                        </Button>
                    </WrapPanel> 
                    <me:UAFSVALS/>
                    <Grid Margin="5,5,0,0">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                        </Grid.RowDefinitions>
                        <Grid Grid.Row="0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=Code:}}"></TextBlock>
                            <ex:TXT72 Grid.Column="1"  Text="{Binding CODE,ElementName=TV,Converter={StaticResource gb2312}}"   
                                      TabIndex="201"
                                      MaxLength="20"     Width="200" />
                            <TextBlock  Grid.Column="2" Text="{Binding Source={Localization:Translate Word=Location:}}"></TextBlock>
                            <ex:TXT72 Grid.Column="3"  Text="{Binding LOCATION,ElementName=TV,Converter={StaticResource gb2312}}" 
                                       TabIndex="202"
                                      MaxLength="24"   Width="200" CharacterCasing="Upper" />
                            <TextBlock  Grid.Column="4" Text="{Binding Source={Localization:Translate Word=Book:}}"></TextBlock>
                            <ex:TXT72 Grid.Column="5"  Text="{Binding BOOK,ElementName=TV,Converter={StaticResource gb2312}}"   
                                       TabIndex="203"
                                      MaxLength="24"  CharacterCasing="Upper"  Width="200" />
                        </Grid>
                        <Grid Grid.Row="1">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="98"></ColumnDefinition>
                                <ColumnDefinition Width="303"/>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=Composition:}}"></TextBlock>
                            <ex:TXT72 Grid.Column="1"  Text="{Binding COMPOSITION,Converter={StaticResource gb2312},ElementName=TV}"  
                                  IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"  
                                       TabIndex="204"
                                      MaxLength="73" CharacterCasing="Upper"  Width="400" Grid.ColumnSpan="2" Margin="1,0,0,0" /> 
                        </Grid>
                        <WrapPanel  Grid.Row="2">
                            <TextBlock Text="{Binding Source={Localization:Translate Word=Weight:}}"/>
                            <ex:TXT72 Text="{Binding WEIGHT,ElementName=TV,Converter={StaticResource trim}}" Width="100"
                           TabIndex="206"
                          />    
                            <TextBlock Text="{Binding Source={Localization:Translate Word=Width:}}"/>
                            <ex:TXT72 Text="{Binding WIDTH,ElementName=TV,Converter={StaticResource trim}}"
                                      Width="100" TabIndex="207"/>
                            <TextBlock Text="{Binding Source={Localization:Translate Word=Customer price:}}"/>
                            <ex:TXT72 Text="{Binding CUSTOMERPRICE,ElementName=TV,Converter={StaticResource trim}}" 
                                      TabIndex="208" Width="200"/>

                        </WrapPanel>
                        <Grid Grid.Row="2">                            
                            <EXART:TART Name="cART"
                                Visibility="Collapsed"
                                 TabIndex="209"
                                IsAuto="True"
                                IsSaved="{Binding IsSaved,ElementName=TV}"
                                ORDERNUM="{Binding KEY,ElementName=TV}"
                                KEY="{Binding EXAUF,ElementName=TV}" 
                                CODE="{Binding CODE,ElementName=TV}"
                                BOOK="{Binding BOOK,ElementName=TV}"
                                LOCATION="{Binding LOCATION,ElementName=TV}"   
                                CUSTOMERPRICE="{Binding CUSTOMERPRICE,ElementName=TV}"
                                WEIGHT="{Binding WEIGHT,ElementName=TV}" 
                                WIDTH="{Binding WIDTH,ElementName=TV}" 
                                REMARK="{Binding REMARK,ElementName=TV}"
                                COMPOSITION="{Binding COMPOSITION,ElementName=TV}" 
                                SUPPLIER="{Binding LSLIEFNA,ElementName=TV}" />
                        </Grid>
                       
                    </Grid>
                  
                </StackPanel>
                <!--<me:UVALS Grid.Row="4" Grid.Column="1"/>-->
               
            </Grid>
            <WS:TAFSWASTAMM Grid.Row="1"                          
                    Margin="5,0,0,0" Name="cWS" 
                    IsAuto="True" 
                    DES="{Binding DES,ElementName=TV}"  
                    ARTGRP="{Binding ARTGRP,ElementName=TV}"  
                    PRODGRP="{Binding PRODGRP,ElementName=TV}"  
                    ORDERNUM="{Binding PRART,ElementName=TV}"
                    WALIEFNR="{Binding LIEFNR,ElementName=TV}"  
                    LSLIEFNA="{Binding LSLIEFNA,ElementName=TV}"  
                    FBRTU="{Binding FBRTU,ElementName=TV}"  
                    FBRTL="{Binding FBRTL,ElementName=TV}"  
                    FGRLFD="{Binding FGRLFD,ElementName=TV}"  
                    FGRQM="{Binding FGRQM,ElementName=TV}"  
                    FFDDIK="{Binding FFDDIK,ElementName=TV}"  
                    FFDDIS="{Binding FFDDIS,ElementName=TV}"
                    DENUM="{Binding FDDIM,ElementName=TV}"
                    IsEdit="{Binding IsEdit,ElementName=TV}" 
                    IsExtProd="{Binding IsExtProd,ElementName=TV}" 
                    IsShowRight="{Binding IsShowRight,ElementName=TV}"
                    IsImageMax="{Binding IsImageMax,ElementName=TV}" 
                    IMAGEPATH="{Binding IMAGEPATH,ElementName=TV}"
                    DEFTXT="{Binding DEFWSTXT,ElementName=TV}"/>
        </Grid>
        <Grid Grid.Row="1" Grid.Column="1" >
            <Grid.RowDefinitions> 
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <WrapPanel Grid.Row="0">
                <TextBlock Text="{Binding Source={Localization:Translate Word=Remark:}}"/>
            </WrapPanel>
            <TXT:TXTITXBOX Grid.Row="1" Margin="0,0,0,0" 
                                 TART="VKT"
                                IsInfoOneLine="True"
                                IsTXTBox="True"
                                 IsEdit="{Binding IsEdit,ElementName=TV}"   
                                  IsSaved="{Binding IsSaved,ElementName=TV}"   
                                SIND="{Binding TXTISIND,ElementName=TV}"   
                                INFO="{Binding REMARK,ElementName=TV}"   
                                 VerticalAlignment="Top"/> 
        </Grid>

        <TabControl Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
            <TabItem Header="{Binding Source={Localization:Translate Word=Article List}}">
                <Grid Grid.Row="1" Grid.Column="1" >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="1*"/>
                        
                    </Grid.RowDefinitions>
                    <WrapPanel>
                        <CheckBox Content="Print Mode" Foreground="Red" IsChecked="{Binding IsPrint,ElementName=TV}"/>
                        <TextBlock Margin="20,0,0,0" Text="If you check the IsPrint, the list will be clear. then you can choose from the list and confirm "/>
                    </WrapPanel>
                    <ex:TPage  Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Visibility="{Binding IsPage,Converter={StaticResource bv}}"/>
                    <DataGrid  
                       Grid.Row="2"
                        Margin="10,10,30,10"
                           VerticalAlignment="Top"  
                           AutoGenerateColumns="False"
                           EnableRowVirtualization="False"
                           IsReadOnly="True"
                           VerticalScrollBarVisibility="Auto"
                           HorizontalScrollBarVisibility="Auto"
                           HeadersVisibility="Column"     
                           ItemsSource="{Binding Source={StaticResource vwMaster}}" 
                           IsSynchronizedWithCurrentItem="True" 
                           x:Name="dlgMaster">
                        <DataGrid.Columns>
                            <DataGridCheckBoxColumn Width="40" Binding="{Binding Path=IsSelected,RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type DataGridRow}}}">
                                <DataGridCheckBoxColumn.HeaderTemplate>
                                    <DataTemplate>
                                        <CheckBox x:Name="ckbSelectedAll" Checked="ckbSelectedAll_Click" Unchecked="ckbSelectedAll_Unchecked"></CheckBox>
                                    </DataTemplate>
                                </DataGridCheckBoxColumn.HeaderTemplate>
                            </DataGridCheckBoxColumn> 
                            <DataGridTextColumn Binding="{Binding Path=VAAART}" Header="Barcode" Width="Auto"  />
                            <DataGridTextColumn Binding="{Binding Path=VAABEZ,Converter={StaticResource trim}}" Header="ART NO."  Width="AUTO" />
                            <DataGridTextColumn Binding="{Binding Path=VAAFILLER,Converter={StaticResource trim}}" Header="Composition:"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=WEIGHT,Converter={StaticResource trim}}" Header="Weight"  Width="Auto" />
                            <DataGridTextColumn Header="Width"  Binding="{Binding Path=WIDTH,Converter={StaticResource trim}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=CODE,Converter={StaticResource trim}}" Header="Code"  Width="AUTO" />
                            <DataGridTextColumn Binding="{Binding Path=LSLIEFNA,Converter={StaticResource trim}}" Header="Supplier"  Width="Auto" />
                            <DataGridTextColumn Header="Customer Price" Binding="{Binding Path=PRICE,Converter={StaticResource trim}}"   Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=LOCATION}" Header="Location"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=BOOK}" Header="Book"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=REMARK}" Header="{Binding Source={Localization:Translate Word=Remark}}"  Width="Auto" />

                            <DataGridTextColumn Binding="{Binding Path=VAAAENDBEN}" Header="{Binding Source={Localization:Translate Word=Modify}}" Visibility="Collapsed" Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=VAAAENDDAT}" Header="{Binding Source={Localization:Translate Word=Date}}"  Visibility="Collapsed" Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=VAANEUBEN}" Header="{Binding Source={Localization:Translate Word=Creat}}"  Visibility="Collapsed" Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=VAANEUDAT}" Header="{Binding Source={Localization:Translate Word=Date}}"  Visibility="Collapsed" Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=VAASPERRDAT}" Header="{Binding Source={Localization:Translate Word=DelDate}}"    Width="Auto" />
                        </DataGrid.Columns>
                    </DataGrid  >
                   
                </Grid>             
            </TabItem>
            <TabItem Header="Batch Print/Delete">
                <me:TEXARTLIST
                    IsPrint="{Binding IsPrint,ElementName=TV}"
                    VALBTYP="{Binding VALBTYP,ElementName=TV}" 
                    EXAUF="{Binding KEY,ElementName=TV}"
                    />
            </TabItem>
          
            <TabItem Header="Import from Excel">
                <Grid Grid.Row="1" Grid.Column="1" >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="1*"/>
                    </Grid.RowDefinitions>
                    <WrapPanel> 
                        <TextBlock Text="{Binding Source={Localization:Translate Word=Prefix:}}"/>
                        <Button Margin="10,0,10,0" Click="ReimportCommand" Content="{Binding Source={Localization:Translate Word=Reimport}}"/>
                        <VAK:TSAVA02 KEY="{Binding KOLL, ElementName=TV}"
                                     IsReset="{Binding IsReset,ElementName=TV}"
                                     />
                        <DR:TDRAUFTR Name="cDREx" Visibility="Collapsed"
                             DocType="LOADEXCEL"  
                             DESTFOLDER="C:/IntexReport/Data/AFSEXAPP/EXCEL"
                             PREFIX="ITXEX"
                             />
                        <TextBox Text="{Binding ART,ElementName=TV}" Width="200"/>
                        <TextBox Text="{Binding VAR,ElementName=TV}" Width="60"/>
                        <Button Margin="15,0,0,0" Content="{Binding Source={Localization:Translate Word=ExcelLoad}}" Click="LoadExcelCommand"></Button>
                        <TextBlock Text="{Binding Source={Localization:Translate Word= You can not click any row below list. please query again.}}"/>
                    </WrapPanel>
                    <DataGrid  
                       Grid.Row="1"
                   VerticalAlignment="Top"  
                   AutoGenerateColumns="False"
                   EnableRowVirtualization="False"
                   IsEnabled="False"
                   VerticalScrollBarVisibility="Auto"
                   HorizontalScrollBarVisibility="Auto"
                   HeadersVisibility="Column"     
                   ItemsSource="{Binding Source={StaticResource vwMaster}}" 
                   IsSynchronizedWithCurrentItem="True" 
                   x:Name="dlgDetailEx">
                        <DataGrid.Columns> 
                            <DataGridTextColumn Binding="{Binding Path=VAAKOLL}" Header="{Binding Source={Localization:Translate Word=Collection}}" Visibility="Collapsed" Width="Auto"  />
                            <DataGridTextColumn Binding="{Binding Path=VAABEZ,Converter={StaticResource trim}}" Header="ART NO."  Width="AUTO" />
                         </DataGrid.Columns>
                    </DataGrid  >
                </Grid>
            </TabItem>
        </TabControl>
       
        <Grid Grid.Row="1" Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
           
            <VF:TAFSVA09  Grid.Row="1" Margin="0,5,0,0" Visibility="Collapsed"
                       IsAuto="True"
                       EXAUF="{Binding KEY,ElementName=TV}"/>
        </Grid>
      
        <Image  Name="cImage" Grid.Row="1" Grid.RowSpan="3" Grid.Column="0" Grid.ColumnSpan="2" 
               Visibility="{Binding IsImageMax,ElementName=cWS,Converter={StaticResource bv}}"
               Source="{Binding Path=PHOTOLINK, ElementName=cWS}" 
                  MouseLeftButtonDown="Image_MouseLeftButtonUp"
                Stretch="Uniform" 
       />

    </Grid>
</me:UIVAART>
